package springbook.common;

import java.sql.DriverManager;
import java.sql.SQLException;

import com.mysql.jdbc.Connection;

public class SimpleConnectionMaker {
	public Connection makeNewConnection() throws ClassNotFoundException, SQLException{
		Class.forName("com.mysql.jdbc.Driver");
		Connection c = (Connection) DriverManager.getConnection("jdbc:mysql://localhost/spring", "hjdb", "hong00");
		
		return c;
	}
}
